/**
 * Movies Card Styles
 * 
 * CSS Module for the movies card component.
 * Provides responsive grid layout and movie card styling.
 */

.moviesGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  width: 100%;
  max-width: 1200px;
}

.movieCard {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 16px;
  background: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
}

.movieCard:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.movieCard.selected {
  border-color: #0070f3;
  box-shadow: 0 2px 4px rgba(0, 112, 243, 0.2);
}

.selectionCheckbox {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.9);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
}

.checkbox {
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.moviePoster {
  position: relative;
  width: 100%;
  height: 300px;
  margin-bottom: 16px;
  background: #f5f5f5;
  border-radius: 4px;
  overflow: hidden;
}

.moviePoster img {
  border-radius: 4px;
  object-fit: cover;
}

.posterPlaceholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: #666;
  font-size: 14px;
  text-align: center;
  background: #f5f5f5;
  border-radius: 4px;
}

.movieInfo {
  margin-bottom: 16px;
}

.movieTitle {
  margin: 0 0 8px 0;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  color: #333;
}

.movieYear {
  margin: 0 0 4px 0;
  color: #666;
  font-size: 14px;
}

.movieRating {
  margin: 0 0 4px 0;
  color: #666;
  font-size: 14px;
}

.movieGenres {
  margin: 0;
  color: #888;
  font-size: 12px;
  font-style: italic;
}

.detailsButton {
  display: block;
  width: 100%;
  background: #0066cc;
  color: white;
  border: none;
  padding: 12px 16px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: background-color 0.2s ease;
}

.detailsButton:hover {
  background: #0052a3;
}

.noMovies {
  text-align: center;
  padding: 40px;
  color: #666;
}

.pageTitle {
  margin: 0 0 16px 0;
  font-size: 32px;
  color: #333;
}

.movieCount {
  margin: 0 0 32px 0;
  color: #666;
  font-size: 16px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .moviesGrid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
  }
  
  .moviePoster {
    height: 240px;
  }

  .pageTitle {
    font-size: 28px;
  }
}

@media (max-width: 480px) {
  .moviesGrid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .movieCard {
    padding: 12px;
  }

  .moviePoster {
    height: 200px;
  }

  .pageTitle {
    font-size: 24px;
  }
}